package com.moyun.model.common;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @return
 * @Author yangboxuan
 * @Description 分页查询结果封装
 * @Date 2021/5/31 17:13
 * @Param
 **/
@Getter
@Setter
public class PageResult<T> implements Serializable {
    private long total;//总条数
    //    private Integer totalPage;//总页数
    private List<T> rows;

    public PageResult() {
    }

    public PageResult(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}